Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|