Spaces:
Runtime error
Runtime error
Commit ·
914a779
1
Parent(s): 7f2ec6d
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def generateresponse(history):
|
|
| 75 |
|
| 76 |
user = history[-1][0]
|
| 77 |
|
| 78 |
-
response = f"
|
| 79 |
history[-1][1] = response
|
| 80 |
print(history)
|
| 81 |
return history
|
|
@@ -203,7 +203,7 @@ with gr.Blocks(title='Claimed', theme=theme) as demo:
|
|
| 203 |
with gr.Column(scale=0.85):
|
| 204 |
txt = gr.Textbox(
|
| 205 |
show_label=False,
|
| 206 |
-
placeholder="Enter text and
|
| 207 |
).style(container=False)
|
| 208 |
with gr.Column(scale=0.15, min_width=0):
|
| 209 |
btn = gr.Button("Submit")
|
|
|
|
| 75 |
|
| 76 |
user = history[-1][0]
|
| 77 |
|
| 78 |
+
response = f"You asked: {user}"
|
| 79 |
history[-1][1] = response
|
| 80 |
print(history)
|
| 81 |
return history
|
|
|
|
| 203 |
with gr.Column(scale=0.85):
|
| 204 |
txt = gr.Textbox(
|
| 205 |
show_label=False,
|
| 206 |
+
placeholder="Enter text and submit",
|
| 207 |
).style(container=False)
|
| 208 |
with gr.Column(scale=0.15, min_width=0):
|
| 209 |
btn = gr.Button("Submit")
|