Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
|
| 4 |
-
NEBIUS_API_KEY =
|
| 5 |
-
FOLDER_ID =
|
| 6 |
|
| 7 |
def generate_recipe(dietary_pref, ingredients):
|
| 8 |
input_text = f"Create a recipe using these ingredients: {ingredients}. It should be {dietary_pref}."
|
|
@@ -13,7 +13,7 @@ def generate_recipe(dietary_pref, ingredients):
|
|
| 13 |
}
|
| 14 |
|
| 15 |
body = {
|
| 16 |
-
"folderId": FOLDER_ID,
|
| 17 |
"texts": [input_text],
|
| 18 |
"model": "general",
|
| 19 |
"temperature": 0.6,
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
|
| 4 |
+
NEBIUS_API_KEY = {NEBIUS_API_KEY}
|
| 5 |
+
FOLDER_ID = {FOLDER_ID}
|
| 6 |
|
| 7 |
def generate_recipe(dietary_pref, ingredients):
|
| 8 |
input_text = f"Create a recipe using these ingredients: {ingredients}. It should be {dietary_pref}."
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
body = {
|
| 16 |
+
"folderId": {FOLDER_ID},
|
| 17 |
"texts": [input_text],
|
| 18 |
"model": "general",
|
| 19 |
"temperature": 0.6,
|