ShermanAI commited on
Commit
54f655a
·
verified ·
1 Parent(s): 5d36f58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -2
app.py CHANGED
@@ -42,7 +42,7 @@ examples = [
42
  ["What are some common applications of deep learning in engineering?", []]
43
  ]
44
  gr.ChatInterface(predict, title=title, description=description, examples=examples).queue().launch(debug=True)
45
- '''
46
 
47
  title = "ChatSherman-2.0"
48
  description = ("Due to the unavailability of an OpenAI key, this chatbot is currently not operational. "
@@ -55,4 +55,35 @@ def show_message():
55
 
56
  iface = gr.Interface(fn=show_message, inputs=[], outputs="text", title=title, description=description)
57
 
58
- iface.launch(debug=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ["What are some common applications of deep learning in engineering?", []]
43
  ]
44
  gr.ChatInterface(predict, title=title, description=description, examples=examples).queue().launch(debug=True)
45
+
46
 
47
  title = "ChatSherman-2.0"
48
  description = ("Due to the unavailability of an OpenAI key, this chatbot is currently not operational. "
 
55
 
56
  iface = gr.Interface(fn=show_message, inputs=[], outputs="text", title=title, description=description)
57
 
58
+ iface.launch(debug=True)
59
+ '''
60
+
61
+ import gradio as gr
62
+
63
+ title = “ChatSherman-2.0”
64
+ description = ("Due to the unavailability of an OpenAI key, this chatbot is currently not operational. "
65
+ "I apologize for any inconvenience caused. However, you may try using ChatSherman-1.0 at "
66
+ "https://huggingface.co/spaces/ShermanAI/ChatSherman for a similar conversational experience. "
67
+ "Thank you for your understanding”)
68
+
69
+ # Custom CSS to increase the font size of the description.
70
+ custom_css = """
71
+ <style>
72
+ .markdown-text {
73
+ font-size: 20px;
74
+ }
75
+ </style>
76
+ """
77
+
78
+ def show_message():
79
+ return description # Simply return the message.
80
+
81
+ # Create a Gradio interface that only shows the message with no interaction, and larger font.
82
+ iface = gr.Interface(
83
+ fn=show_message,
84
+ inputs=[],
85
+ outputs="text",
86
+ title=title,
87
+ description=description,
88
+ css=custom_css # Add the custom CSS here.
89
+ )