Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,8 @@ history = dict()
|
|
| 34 |
|
| 35 |
def predict(user_id, gender, age):
|
| 36 |
# ์ถ์ฒ ํด์ ๋ฐํ
|
| 37 |
-
|
|
|
|
| 38 |
|
| 39 |
def add(user_id, movie):
|
| 40 |
if not user_id in history:
|
|
@@ -48,12 +49,12 @@ with gr.Blocks() as demo:
|
|
| 48 |
fn=predict,
|
| 49 |
inputs=["text", "text", "text"],
|
| 50 |
outputs="text",
|
| 51 |
-
description="
|
| 52 |
)
|
| 53 |
bb = gr.Interface(
|
| 54 |
fn=add,
|
| 55 |
inputs=["text", "text"],
|
| 56 |
outputs="text",
|
| 57 |
-
description="
|
| 58 |
)
|
| 59 |
demo.queue(max_size=32).launch(enable_queue=True)
|
|
|
|
| 34 |
|
| 35 |
def predict(user_id, gender, age):
|
| 36 |
# ์ถ์ฒ ํด์ ๋ฐํ
|
| 37 |
+
movie = "์ถ์ฒ ์ํ"
|
| 38 |
+
return f"{movie}"
|
| 39 |
|
| 40 |
def add(user_id, movie):
|
| 41 |
if not user_id in history:
|
|
|
|
| 49 |
fn=predict,
|
| 50 |
inputs=["text", "text", "text"],
|
| 51 |
outputs="text",
|
| 52 |
+
description="์ถ์ฒ",
|
| 53 |
)
|
| 54 |
bb = gr.Interface(
|
| 55 |
fn=add,
|
| 56 |
inputs=["text", "text"],
|
| 57 |
outputs="text",
|
| 58 |
+
description="์์ฒญ๊ธฐ๋ก ์ถ๊ฐ",
|
| 59 |
)
|
| 60 |
demo.queue(max_size=32).launch(enable_queue=True)
|