Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files
agent.py
CHANGED
|
@@ -17,11 +17,11 @@ def generate_answer(question):
|
|
| 17 |
return response.text
|
| 18 |
|
| 19 |
with gr.Blocks() as demo:
|
| 20 |
-
gr.Markdown("## 🤖
|
| 21 |
with gr.Row():
|
| 22 |
inp = gr.Textbox(label="Enter your question here...")
|
| 23 |
with gr.Row():
|
| 24 |
-
out = gr.Textbox(label="Response
|
| 25 |
btn = gr.Button("Ask")
|
| 26 |
btn.click(fn=generate_answer, inputs=inp, outputs=out)
|
| 27 |
|
|
|
|
| 17 |
return response.text
|
| 18 |
|
| 19 |
with gr.Blocks() as demo:
|
| 20 |
+
gr.Markdown("## 🤖I am Rosh's PA - An AI/ML expert.")
|
| 21 |
with gr.Row():
|
| 22 |
inp = gr.Textbox(label="Enter your question here...")
|
| 23 |
with gr.Row():
|
| 24 |
+
out = gr.Textbox(label="Response")
|
| 25 |
btn = gr.Button("Ask")
|
| 26 |
btn.click(fn=generate_answer, inputs=inp, outputs=out)
|
| 27 |
|