Upload app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import streamlit as st
|
|
9 |
import gradio as gr
|
10 |
from gradio.components import Textbox, Slider
|
11 |
|
12 |
-
openai.api_key = 'sk-
|
13 |
|
14 |
# write some python constants for file name, paragraph length, overlapping length:
|
15 |
file_path = "data/Hair-Relaxer-Master-Complaint-1.pdf"
|
@@ -128,7 +128,8 @@ def run():
|
|
128 |
Textbox(lines=1, placeholder="Type your question here...", label="Question"),
|
129 |
Slider(minimum=1, maximum=20, default=4, step=1, label="Number of Documents in Context")
|
130 |
],
|
131 |
-
outputs="text"
|
|
|
132 |
)
|
133 |
|
134 |
demo.launch()
|
|
|
9 |
import gradio as gr
|
10 |
from gradio.components import Textbox, Slider
|
11 |
|
12 |
+
openai.api_key = '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'
|
13 |
|
14 |
# write some python constants for file name, paragraph length, overlapping length:
|
15 |
file_path = "data/Hair-Relaxer-Master-Complaint-1.pdf"
|
|
|
128 |
Textbox(lines=1, placeholder="Type your question here...", label="Question"),
|
129 |
Slider(minimum=1, maximum=20, default=4, step=1, label="Number of Documents in Context")
|
130 |
],
|
131 |
+
outputs="text",
|
132 |
+
theme="dark"
|
133 |
)
|
134 |
|
135 |
demo.launch()
|