Update app.py
Browse files
app.py
CHANGED
@@ -32,26 +32,6 @@ def respond(
|
|
32 |
response += token
|
33 |
yield response
|
34 |
|
35 |
-
|
36 |
-
"""
|
37 |
-
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
38 |
-
"""
|
39 |
-
#demo = gr.ChatInterface(
|
40 |
-
# respond,
|
41 |
-
# additional_inputs=[
|
42 |
-
# gr.Textbox(value="You are a movie review classifier. You respond to given movie reviews with a predicted star rating 0-5 for that review with no explanation.", label="System message"),
|
43 |
-
# gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
44 |
-
# gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
45 |
-
# gr.Slider(
|
46 |
-
# minimum=0.1,
|
47 |
-
# maximum=1.0,
|
48 |
-
# value=0.95,
|
49 |
-
# step=0.05,
|
50 |
-
# label="Top-p (nucleus sampling)",
|
51 |
-
# ),
|
52 |
-
# ],
|
53 |
-
#)
|
54 |
-
|
55 |
demo = gr.Interface(
|
56 |
respond,
|
57 |
inputs=["text"],
|
@@ -72,4 +52,4 @@ demo = gr.Interface(
|
|
72 |
|
73 |
|
74 |
if __name__ == "__main__":
|
75 |
-
demo.launch(
|
|
|
32 |
response += token
|
33 |
yield response
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
demo = gr.Interface(
|
36 |
respond,
|
37 |
inputs=["text"],
|
|
|
52 |
|
53 |
|
54 |
if __name__ == "__main__":
|
55 |
+
demo.launch()
|