Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -286,22 +286,22 @@ class GradioInterface:
|
|
286 |
|
287 |
|
288 |
if __name__ == '__main__':
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
'''
|
306 |
|
307 |
prompt_refiner = PromptRefiner(api_token)
|
|
|
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)
|