Spaces:
Sleeping
Sleeping
feat:add testbox
Browse files
app.py
CHANGED
@@ -16,5 +16,7 @@ def infer():
|
|
16 |
pipe = pipeline("text-generation", model="microsoft/Phi-3-mini-4k-instruct", trust_remote_code=True)
|
17 |
return pipe(messages)
|
18 |
|
19 |
-
|
|
|
|
|
20 |
demo.launch()
|
|
|
16 |
pipe = pipeline("text-generation", model="microsoft/Phi-3-mini-4k-instruct", trust_remote_code=True)
|
17 |
return pipe(messages)
|
18 |
|
19 |
+
text_input = gr.Textbox(label="Input Text", placeholder="test")
|
20 |
+
|
21 |
+
demo = gr.Interface(fn=infer, inputs="text", outputs="text")
|
22 |
demo.launch()
|