Sheepbon commited on
Commit
e2a2ebe
·
verified ·
1 Parent(s): d9c0d3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -17,6 +17,11 @@ with open("recipes.txt", "r", encoding="utf-8") as file:
17
  # Print the text below
18
  print(recipes_text)
19
 
 
 
 
 
 
20
  #Step 3
21
  def preprocess_text(text):
22
  # Strip extra whitespace from the beginning and the end of the text
 
17
  # Print the text below
18
  print(recipes_text)
19
 
20
+ def greet(name):
21
+ return "Hello, " + name +"!"
22
+
23
+ greeting = gr.Interface(fn = greet, inputs = ["text"], outputs = [gr.Textbox(label = "greeting")])
24
+
25
  #Step 3
26
  def preprocess_text(text):
27
  # Strip extra whitespace from the beginning and the end of the text