Karan156 commited on
Commit
4a2037a
·
1 Parent(s): 3359644

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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)