Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,4 +38,10 @@ iface = gr.Interface(fn=chatbot,
|
|
| 38 |
title="Custom-trained AI Chatbot")
|
| 39 |
|
| 40 |
# index = construct_index("docs")
|
| 41 |
-
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
title="Custom-trained AI Chatbot")
|
| 39 |
|
| 40 |
# index = construct_index("docs")
|
| 41 |
+
iface.launch()
|
| 42 |
+
client = Client("https://karan156-custom-data-chatbot.hf.space/")
|
| 43 |
+
result = client.predict(
|
| 44 |
+
input_text = "Howdy!", # str in 'Enter your text' Textbox component
|
| 45 |
+
api_name="/predict"
|
| 46 |
+
)
|
| 47 |
+
print(result)
|