Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,14 +62,14 @@
|
|
| 62 |
|
| 63 |
import gradio as gr
|
| 64 |
|
| 65 |
-
def YourCoder_chatbot(message, history):
|
| 66 |
-
|
| 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=
|
| 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()
|