Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
client = InferenceClient(
|
5 |
model="https://qynvq9pllv2plc0v.us-east-1.aws.endpoints.huggingface.cloud"
|
6 |
)
|
7 |
-
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
prompt = ""
|
@@ -87,15 +87,11 @@ examples=[["what is self realization according to bhagwan ramana maharishi", Non
|
|
87 |
["why don't have the realization of the self like ramana maharishi as a default feature in us , is it not very inefficient for us to realize over the adulthood?", None, None, None, None, None,],
|
88 |
]
|
89 |
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
concurrency_limit=50
|
99 |
-
)
|
100 |
-
|
101 |
-
app.launch(show_api=False)
|
|
|
4 |
client = InferenceClient(
|
5 |
model="https://qynvq9pllv2plc0v.us-east-1.aws.endpoints.huggingface.cloud"
|
6 |
)
|
7 |
+
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
prompt = ""
|
|
|
87 |
["why don't have the realization of the self like ramana maharishi as a default feature in us , is it not very inefficient for us to realize over the adulthood?", None, None, None, None, None,],
|
88 |
]
|
89 |
|
90 |
+
gr.ChatInterface(
|
91 |
+
fn=generate,
|
92 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
93 |
+
additional_inputs=additional_inputs,
|
94 |
+
title="RamanaGPT",
|
95 |
+
examples=examples,
|
96 |
+
concurrency_limit=50,
|
97 |
+
).launch(show_api=False)
|
|
|
|
|
|
|
|