Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,11 +43,11 @@ description = "Medical Question and Answer"
|
|
43 |
# Gradio elements
|
44 |
|
45 |
# Input from user
|
46 |
-
in_prompt = gradio.
|
47 |
-
in_max_length = gradio.
|
48 |
|
49 |
# Output response
|
50 |
-
out_response = gradio.
|
51 |
|
52 |
# Gradio interface to generate UI link
|
53 |
iface = gradio.Interface(fn=generate_query_response,
|
|
|
43 |
# Gradio elements
|
44 |
|
45 |
# Input from user
|
46 |
+
in_prompt = gradio.components.Textbox(lines=2, label='Enter the question')
|
47 |
+
in_max_length = gradio.components.Number(label='Enter the max length')
|
48 |
|
49 |
# Output response
|
50 |
+
out_response = gradio.components.Textbox(label='Answer')
|
51 |
|
52 |
# Gradio interface to generate UI link
|
53 |
iface = gradio.Interface(fn=generate_query_response,
|