levena commited on
Commit
3b8f39f
·
1 Parent(s): 37d9fde

feat:add testbox

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- demo = gr.Interface(fn=infer, inputs="nya", outputs="text")
 
 
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()