Yashnik commited on
Commit
3be74ec
·
verified ·
1 Parent(s): d7779b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -62,14 +62,14 @@
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
- chatbot = gr.Interface(fn=YourCoder_chatbot, inputs=[gr.Textbox(label="Insert Code Snippet",lines=5)],
70
  outputs=[gr.Textbox(label="Review Here",lines=8)],
71
  title="Code Reviewer"
72
  )
73
  # gr.load("models/bigcode/starcoder").launch()
74
 
75
- 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
+ chatbot = gr.Interface(fn=gr.load("models/bigcode/starcoder").launch(), inputs=[gr.Textbox(label="Insert Code Snippet",lines=5)],
70
  outputs=[gr.Textbox(label="Review Here",lines=8)],
71
  title="Code Reviewer"
72
  )
73
  # gr.load("models/bigcode/starcoder").launch()
74
 
75
+ # chatbot.launch()