Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,8 +134,11 @@ def run_simulation(topic,
|
|
134 |
image_folder=image_folder)
|
135 |
|
136 |
subfolder = topic.replace(" ", "-")
|
137 |
-
|
138 |
-
|
|
|
|
|
|
|
139 |
sys.stdout = restore_point
|
140 |
return {
|
141 |
progress_output: "### Current Progress \n To see your results, visit the bot simulation Mastodon server. \n Link to Mastodon Server: [https://bot-simulation-research.app/home](https://bot-simulation-research.app/home)",
|
@@ -201,7 +204,7 @@ with gr.Blocks() as demo:
|
|
201 |
"gpt-4-0314",
|
202 |
"gpt-4-32k",
|
203 |
"gpt-4-32k-0314"])
|
204 |
-
temperature = gr.Slider(label="Set Your Temperature (0.0-1.7
|
205 |
value=1.4,
|
206 |
minimum=0.0,
|
207 |
maximum=1.7,
|
|
|
134 |
image_folder=image_folder)
|
135 |
|
136 |
subfolder = topic.replace(" ", "-")
|
137 |
+
if with_images:
|
138 |
+
img_filename = f"{image_folder}/{subfolder}/tweet-img-row-0.png"
|
139 |
+
img_fullpath = os.path.join(os.path.dirname(__file__), img_filename)
|
140 |
+
else:
|
141 |
+
img_fullpath = gr.update(visible=False)
|
142 |
sys.stdout = restore_point
|
143 |
return {
|
144 |
progress_output: "### Current Progress \n To see your results, visit the bot simulation Mastodon server. \n Link to Mastodon Server: [https://bot-simulation-research.app/home](https://bot-simulation-research.app/home)",
|
|
|
204 |
"gpt-4-0314",
|
205 |
"gpt-4-32k",
|
206 |
"gpt-4-32k-0314"])
|
207 |
+
temperature = gr.Slider(label="Set Your Temperature (0.0-1.7) WARNING: Temperature above 1.5 tends to produce gibberish 50% of the time.",
|
208 |
value=1.4,
|
209 |
minimum=0.0,
|
210 |
maximum=1.7,
|