Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def recipe_maker(dish:str)-> str: #it's import to specify the return type
|
|
| 32 |
if data['dish'] == None:
|
| 33 |
return f"Error getting instruction for the recipe for {dish}."
|
| 34 |
else:
|
| 35 |
-
return data["meals"][
|
| 36 |
except Exception as e:
|
| 37 |
return f"Error getting recipe info for '{dish}':{str(e)}"
|
| 38 |
|
|
@@ -69,8 +69,8 @@ final_answer = FinalAnswerTool()
|
|
| 69 |
model = HfApiModel(
|
| 70 |
max_tokens=2096,
|
| 71 |
temperature=0.5,
|
| 72 |
-
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 73 |
-
|
| 74 |
custom_role_conversions=None,
|
| 75 |
)
|
| 76 |
|
|
|
|
| 32 |
if data['dish'] == None:
|
| 33 |
return f"Error getting instruction for the recipe for {dish}."
|
| 34 |
else:
|
| 35 |
+
return data["meals"][1]["strInstructions"]
|
| 36 |
except Exception as e:
|
| 37 |
return f"Error getting recipe info for '{dish}':{str(e)}"
|
| 38 |
|
|
|
|
| 69 |
model = HfApiModel(
|
| 70 |
max_tokens=2096,
|
| 71 |
temperature=0.5,
|
| 72 |
+
# model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 73 |
+
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
| 74 |
custom_role_conversions=None,
|
| 75 |
)
|
| 76 |
|