Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -282,28 +282,25 @@ class GradioInterface:
|
|
282 |
|
283 |
|
284 |
#explanation_markdown = "".join([f"- **{key}**: {value}\n" for key, value in metaprompt_explanations.items()])
|
|
|
|
|
|
|
|
|
285 |
|
286 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
|
288 |
if __name__ == '__main__':
|
289 |
-
''' meta_info=""
|
290 |
-
api_token = os.getenv('HF_API_TOKEN')
|
291 |
-
if not api_token:
|
292 |
-
raise ValueError("HF_API_TOKEN not found in environment variables")
|
293 |
-
|
294 |
-
metadone = os.getenv('metadone')
|
295 |
-
prompt_refiner_model = os.getenv('prompt_refiner_model')
|
296 |
-
echo_prompt_refiner = os.getenv('echo_prompt_refiner')
|
297 |
-
metaprompt1 = os.getenv('metaprompt1')
|
298 |
-
loic_metaprompt = os.getenv('loic_metaprompt')
|
299 |
-
openai_metaprompt = os.getenv('openai_metaprompt')
|
300 |
-
original_meta_prompt = os.getenv('original_meta_prompt')
|
301 |
-
new_meta_prompt = os.getenv('new_meta_prompt')
|
302 |
-
advanced_meta_prompt = os.getenv('advanced_meta_prompt')
|
303 |
-
math_meta_prompt = os.getenv('metamath')
|
304 |
-
autoregressive_metaprompt = os.getenv('autoregressive_metaprompt')
|
305 |
-
'''
|
306 |
-
|
307 |
prompt_refiner = PromptRefiner(api_token)
|
308 |
gradio_interface = GradioInterface(prompt_refiner,custom_css)
|
309 |
gradio_interface.launch(share=True)
|
|
|
282 |
|
283 |
|
284 |
#explanation_markdown = "".join([f"- **{key}**: {value}\n" for key, value in metaprompt_explanations.items()])
|
285 |
+
''' meta_info=""
|
286 |
+
api_token = os.getenv('HF_API_TOKEN')
|
287 |
+
if not api_token:
|
288 |
+
raise ValueError("HF_API_TOKEN not found in environment variables")
|
289 |
|
290 |
+
metadone = os.getenv('metadone')
|
291 |
+
prompt_refiner_model = os.getenv('prompt_refiner_model')
|
292 |
+
echo_prompt_refiner = os.getenv('echo_prompt_refiner')
|
293 |
+
metaprompt1 = os.getenv('metaprompt1')
|
294 |
+
loic_metaprompt = os.getenv('loic_metaprompt')
|
295 |
+
openai_metaprompt = os.getenv('openai_metaprompt')
|
296 |
+
original_meta_prompt = os.getenv('original_meta_prompt')
|
297 |
+
new_meta_prompt = os.getenv('new_meta_prompt')
|
298 |
+
advanced_meta_prompt = os.getenv('advanced_meta_prompt')
|
299 |
+
math_meta_prompt = os.getenv('metamath')
|
300 |
+
autoregressive_metaprompt = os.getenv('autoregressive_metaprompt')
|
301 |
+
'''
|
302 |
|
303 |
if __name__ == '__main__':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
prompt_refiner = PromptRefiner(api_token)
|
305 |
gradio_interface = GradioInterface(prompt_refiner,custom_css)
|
306 |
gradio_interface.launch(share=True)
|