Spaces:
Runtime error
Runtime error
on1onmangoes
commited on
Commit
•
16c0bab
1
Parent(s):
9e64017
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ HF_TOKEN = os.getenv("HF_TOKEN") # Replace with your actual token if not using
|
|
9 |
client = Client("on1onmangoes/cnianswer101724v4", hf_token=HF_TOKEN)
|
10 |
|
11 |
|
12 |
-
client_name = ['
|
13 |
|
14 |
|
15 |
|
@@ -224,7 +224,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
224 |
|
225 |
with gr.Tab("Process PDF"):
|
226 |
pdf_input = gr.File(label="Upload PDF File")
|
227 |
-
select_client_dropdown = gr.Dropdown(client_name, value="rosariarossi", label="Select or Type Client", allow_custom_value=True)
|
228 |
pdf_output = gr.Textbox(label="PDF Result", interactive=False)
|
229 |
|
230 |
pdf_button = gr.Button("Process PDF")
|
@@ -236,7 +236,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
236 |
|
237 |
with gr.Tab("Answer with RAG"):
|
238 |
question_input = gr.Textbox(label="Enter Question for RAG")
|
239 |
-
answer_with_rag_select_client_dropdown = gr.Dropdown(client_name, value="
|
240 |
rag_output = gr.Textbox(label="RAG Answer Result", interactive=False)
|
241 |
|
242 |
rag_button = gr.Button("Get Answer")
|
|
|
9 |
client = Client("on1onmangoes/cnianswer101724v4", hf_token=HF_TOKEN)
|
10 |
|
11 |
|
12 |
+
client_name = ['primo','secondo','terzo','quarto4', 'quinto5', 'secondo6', 'sesto6', 'settimo7','ottavo8','nono9']
|
13 |
|
14 |
|
15 |
|
|
|
224 |
|
225 |
with gr.Tab("Process PDF"):
|
226 |
pdf_input = gr.File(label="Upload PDF File")
|
227 |
+
#select_client_dropdown = gr.Dropdown(client_name, value="rosariarossi", label="Select or Type Client", allow_custom_value=True)
|
228 |
pdf_output = gr.Textbox(label="PDF Result", interactive=False)
|
229 |
|
230 |
pdf_button = gr.Button("Process PDF")
|
|
|
236 |
|
237 |
with gr.Tab("Answer with RAG"):
|
238 |
question_input = gr.Textbox(label="Enter Question for RAG")
|
239 |
+
answer_with_rag_select_client_dropdown = gr.Dropdown(client_name, value="primo", label="Select or Type Client", allow_custom_value=True)
|
240 |
rag_output = gr.Textbox(label="RAG Answer Result", interactive=False)
|
241 |
|
242 |
rag_button = gr.Button("Get Answer")
|