Spaces:
Runtime error
Runtime error
Luis Oala
commited on
Commit
·
9249236
1
Parent(s):
a55ed28
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
#TODO:
|
|
|
|
|
|
|
2 |
#TODO: integrate into markdown
|
3 |
import gradio as gr
|
4 |
from gradio import mix
|
@@ -31,7 +34,7 @@ def inference(text, seed):
|
|
31 |
"""
|
32 |
#outtext = io2(text)
|
33 |
set_seed(int(seed))
|
34 |
-
outtext = generator(text, max_length=100, num_return_sequences=1)
|
35 |
return outtext
|
36 |
|
37 |
|
|
|
1 |
+
#TODO: remove options for custom input -> only default "trustworthy ai"
|
2 |
+
#TODO: excatract from generated-text dict entry
|
3 |
+
#TODO: add credits
|
4 |
+
#TODO: add flagging option
|
5 |
#TODO: integrate into markdown
|
6 |
import gradio as gr
|
7 |
from gradio import mix
|
|
|
34 |
"""
|
35 |
#outtext = io2(text)
|
36 |
set_seed(int(seed))
|
37 |
+
outtext = generator(text, max_length=100, num_return_sequences=1)['generated_text'] #get the string from the return dict with key 'generated text'
|
38 |
return outtext
|
39 |
|
40 |
|