dpassov commited on
Commit
8517b94
β€’
1 Parent(s): 7c81ed9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,15 +9,15 @@
9
 
10
  # iface = gr.Interface(fn=get_class, inputs="text", outputs=['text'], title='hello', description='play around')
11
  # iface.launch()
12
-
13
 
14
  # Use a pipeline as a high-level helper
15
  from transformers import pipeline
16
 
17
  my_pipe = pipeline("text-generation", model="NousResearch/Yarn-Mistral-7b-128k")
18
 
19
- def get_class(input):
20
  return my_pipe(input)
21
 
22
- iface = gr.Interface(fn=get_class, inputs="text", outputs=['text'], title='hello', description='LLM')
23
  iface.launch()
 
9
 
10
  # iface = gr.Interface(fn=get_class, inputs="text", outputs=['text'], title='hello', description='play around')
11
  # iface.launch()
12
+ fsddsf
13
 
14
  # Use a pipeline as a high-level helper
15
  from transformers import pipeline
16
 
17
  my_pipe = pipeline("text-generation", model="NousResearch/Yarn-Mistral-7b-128k")
18
 
19
+ def get_class_1(input):
20
  return my_pipe(input)
21
 
22
+ iface = gr.Interface(fn=get_class_1, inputs="text", outputs=['text'], title='hello', description='LLM')
23
  iface.launch()