Spaces:
Runtime error
Runtime error
Commit
·
d3cdb67
1
Parent(s):
1564d5f
layout
Browse files
app.py
CHANGED
@@ -3,5 +3,27 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
iface = gr.Interface(
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
+
iface = gr.Interface(
|
7 |
+
fn=process_and_query,
|
8 |
+
inputs=[
|
9 |
+
gr.Textbox(label="Query"),
|
10 |
+
],
|
11 |
+
outputs=[gr.Markdown(label="Summary")],
|
12 |
+
title="Welcome to Ask USCIS AAO Bot",
|
13 |
+
description='''
|
14 |
+
This is a bot that answers questions about USCIS AAO decisions.
|
15 |
+
Not affiliated to USCIS in anyway and is not a legal advice.
|
16 |
+
Prototype to demonstrate the capability of LLMs to answer questions.
|
17 |
+
LLMs are known to hallucinate. So, please use with caution.
|
18 |
+
''',
|
19 |
+
examples=[
|
20 |
+
["What is the proper treatment for buccal herpes?"],
|
21 |
+
["Male, 40 presenting with swollen glands and a rash"],
|
22 |
+
["How does cellular metabolism work TCA cycle"],
|
23 |
+
["What special care must be provided to children with chicken pox?"],
|
24 |
+
["When and how often should I wash my hands ?"],
|
25 |
+
["بکل ہرپس کا صحیح علاج کیا ہے؟"],
|
26 |
+
["구강 헤르페스의 적절한 치료법은 무엇입니까?"],
|
27 |
+
["Je, ni matibabu gani sahihi kwa herpes ya buccal?"],
|
28 |
+
],
|
29 |
+
)
|