Spaces:
Sleeping
Sleeping
Create app. No py
Browse files- app. No py +17 -0
app. No py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def ai_computer_chat(mensahe, kasaysayan):
|
| 4 |
+
# Tugon ng iyong AI Computer
|
| 5 |
+
tugon = f"Kamusta! Ako ang iyong AI Computer. Natanggap ko ang mensahe mo: '{mensahe}'"
|
| 6 |
+
return tugon
|
| 7 |
+
|
| 8 |
+
# Paggawa ng magandang interface para sa mga gagamit
|
| 9 |
+
demo = gr.ChatInterface(
|
| 10 |
+
fn=ai_computer_chat,
|
| 11 |
+
title="🤖 AI Computer",
|
| 12 |
+
description="Welcome sa AI Computer! Pwede mo akong kausapin dito.",
|
| 13 |
+
examples=["Kamusta AI Computer!", "Ano ang kaya mong gawin?"]
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
if __name__ == "__main__":
|
| 17 |
+
demo.launch()
|