GSridhar1982 commited on
Commit
e682ac6
1 Parent(s): afe5cf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -27,6 +27,13 @@ def predict(text):
27
  # outputs="Answer",
28
  #)
29
 
30
- if __name__ == "__main__":
31
- response = generate_response("What is linear regression?")
32
- print(response)
 
 
 
 
 
 
 
 
27
  # outputs="Answer",
28
  #)
29
 
30
+ iface = gr.Interface(
31
+ fn=generate_response,
32
+ inputs="textbox",
33
+ outputs="text",
34
+ title="AIML Q&A Chatbot",
35
+ description="Ask questions related to AIML and get answers from the fine-tuned Llama model."
36
+ )
37
+
38
+ # Launch the app
39
+ iface.launch()