Yashnik commited on
Commit
41877f0
·
verified ·
1 Parent(s): 44abc21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -61,6 +61,10 @@
61
  # chatbot.launch()
62
 
63
  import gradio as gr
64
- chatbot = gr.ChatInterface(gr.load("models/bigcode/starcoder"), title="YourCoder Chatbot", description="Enter piece of code to generate a code review!")
 
 
 
 
65
  # gr.load("models/bigcode/starcoder").launch()
66
  chatbot.launch()
 
61
  # chatbot.launch()
62
 
63
  import gradio as gr
64
+
65
+ def YourCoder_chatbot(message, history):
66
+ gr.load("models/bigcode/starcoder")
67
+
68
+ chatbot = gr.ChatInterface(YourCoder_chatbot, title="YourCoder Chatbot", description="Enter piece of code to generate a code review!")
69
  # gr.load("models/bigcode/starcoder").launch()
70
  chatbot.launch()