Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,6 @@ def hello(profile: gr.OAuthProfile | None) -> str:
|
|
12 |
def message(message,history,profile: gr.OAuthProfile | None,oauth_token: gr.OAuthToken | None):
|
13 |
if profile is None:
|
14 |
raise gr.Error("Please login to...")
|
15 |
-
return
|
16 |
else:
|
17 |
print(profile)
|
18 |
print(f'oauth token: {oauth_token.token}')
|
@@ -37,7 +36,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
37 |
)
|
38 |
gr.LoginButton()
|
39 |
|
40 |
-
gr.ChatInterface(message,multimodal=True)
|
41 |
|
42 |
# style = """
|
43 |
# <style>
|
|
|
12 |
def message(message,history,profile: gr.OAuthProfile | None,oauth_token: gr.OAuthToken | None):
|
13 |
if profile is None:
|
14 |
raise gr.Error("Please login to...")
|
|
|
15 |
else:
|
16 |
print(profile)
|
17 |
print(f'oauth token: {oauth_token.token}')
|
|
|
36 |
)
|
37 |
gr.LoginButton()
|
38 |
|
39 |
+
gr.ChatInterface(message,multimodal=True,chatbot=gr.Chatbot(height='50%'))
|
40 |
|
41 |
# style = """
|
42 |
# <style>
|