Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -47,6 +47,7 @@ def text_generate(prompt): #, input_prompt_sql ): #, input_prompt_dalle2):
|
|
47 |
"temperature": 1.1,
|
48 |
"max_new_tokens": 250,
|
49 |
"return_full_text": True,
|
|
|
50 |
},
|
51 |
"options":
|
52 |
{"use_cache": True,
|
@@ -104,12 +105,12 @@ with demo:
|
|
104 |
#"Dalle Prompt: Cyberwave vaporpunk art of a kneeling figure, looking up at a glowing neon book icon, smoke and mist, pink and blue lighting, cybernetic sci-fi render\nNew Dalle Prompt: " ], label= "Choose a sample Prompt")
|
105 |
|
106 |
#with gr.Row():
|
107 |
-
input_prompt = gr.Textbox(label="Write some text to get started...", lines=
|
108 |
#input_prompt_dalle2 = gr.Textbox(label="Or Write sample Dalle2 prompts to get more Prompt ideas...")
|
109 |
#input_prompt2 = gr.Textbox(label="Write some text to get started...", lines=15) #input_prompt_sql
|
110 |
#input_word = gr.Textbox(placeholder="Enter a word here to generate text ...")
|
111 |
with gr.Row():
|
112 |
-
generated_txt = gr.Textbox(lines=
|
113 |
#output_image = gr.Image(type="filepath", shape=(256,256))
|
114 |
|
115 |
b1 = gr.Button("Generate Text")
|
|
|
47 |
"temperature": 1.1,
|
48 |
"max_new_tokens": 250,
|
49 |
"return_full_text": True,
|
50 |
+
"do_sample":True,
|
51 |
},
|
52 |
"options":
|
53 |
{"use_cache": True,
|
|
|
105 |
#"Dalle Prompt: Cyberwave vaporpunk art of a kneeling figure, looking up at a glowing neon book icon, smoke and mist, pink and blue lighting, cybernetic sci-fi render\nNew Dalle Prompt: " ], label= "Choose a sample Prompt")
|
106 |
|
107 |
#with gr.Row():
|
108 |
+
input_prompt = gr.Textbox(label="Write some text to get started...", lines=3) #input_prompt_sql
|
109 |
#input_prompt_dalle2 = gr.Textbox(label="Or Write sample Dalle2 prompts to get more Prompt ideas...")
|
110 |
#input_prompt2 = gr.Textbox(label="Write some text to get started...", lines=15) #input_prompt_sql
|
111 |
#input_word = gr.Textbox(placeholder="Enter a word here to generate text ...")
|
112 |
with gr.Row():
|
113 |
+
generated_txt = gr.Textbox(lines=7, visible = True)
|
114 |
#output_image = gr.Image(type="filepath", shape=(256,256))
|
115 |
|
116 |
b1 = gr.Button("Generate Text")
|