pratikshahp commited on
Commit
b52f779
·
verified ·
1 Parent(s): 770dc8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Load a model from Hugging Face for recipe generation
5
- model = pipeline("text-generation", model="anon8231489123/gpt4-x-alpaca-13b-native-4bit-128g")
6
  # Recipe generation function
7
  def suggest_recipes(ingredients):
8
  prompt = f"You are an expert in cooking. Please suggest 3 recipes using the following ingredients: {ingredients}. Provide a title for each recipe, include preparation time, and list step-by-step directions."
 
2
  from transformers import pipeline
3
 
4
  # Load a model from Hugging Face for recipe generation
5
+ model = pipeline("text2text-generation", model="google/flan-t5-large")
6
  # Recipe generation function
7
  def suggest_recipes(ingredients):
8
  prompt = f"You are an expert in cooking. Please suggest 3 recipes using the following ingredients: {ingredients}. Provide a title for each recipe, include preparation time, and list step-by-step directions."