Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -66,6 +66,6 @@ def generate(message, max_new_tokens):
|
|
66 |
# Update the Gradio interface setup
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Markdown("""### Phi-2 Scientific Question Chatbot(Fine-tuned from SciQ dataset)""")
|
69 |
-
tokens_slider = gr.Slider(8, 128, value=
|
70 |
chatbot = gr.Interface(fn=generate, inputs=["text", tokens_slider], outputs="text", examples = examples)
|
71 |
demo.launch(share=True)
|
|
|
66 |
# Update the Gradio interface setup
|
67 |
with gr.Blocks() as demo:
|
68 |
gr.Markdown("""### Phi-2 Scientific Question Chatbot(Fine-tuned from SciQ dataset)""")
|
69 |
+
tokens_slider = gr.Slider(8, 128, value=128, label="Maximum new tokens")
|
70 |
chatbot = gr.Interface(fn=generate, inputs=["text", tokens_slider], outputs="text", examples = examples)
|
71 |
demo.launch(share=True)
|