IMG
Browse files- OpenAI API Response was: Error 401: Inco +0 -1
- app.py +6 -1
- ml.jpg +0 -0
OpenAI API Response was: Error 401: Inco
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
OpenAI API Response was: Error 401: Incorrect API key provided: sk-1anYH***************************************IHEo. You can find your API key at https://platform.openai.com/account/api-keys. More information about this error: https://www.codegpt.co/docs/tutorial-basics/api_errors
|
|
|
|
app.py
CHANGED
@@ -1,5 +1,8 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
3 |
def greet(name):
|
4 |
return "ChatDulun is ChatGPT induced disruption to Higher Education \n" + name + "!!"
|
5 |
|
@@ -7,8 +10,10 @@ def greet(name):
|
|
7 |
# css=""" body { background-color: red } .input_text input { background-color: green } """)
|
8 |
|
9 |
with gr.Blocks() as demo:
|
10 |
-
gr.HTML("""<h1 align="center">
|
11 |
name = gr.Textbox(label='Guest Name')
|
|
|
|
|
12 |
output = gr.Textbox(label='Greetings !')
|
13 |
greet_btn = gr.Button("Greet")
|
14 |
greet_btn.click(fn=greet, inputs=name, outputs=output)
|
|
|
1 |
+
import sys
|
2 |
import gradio as gr
|
3 |
|
4 |
+
#sys.path.insert(0, '/')
|
5 |
+
|
6 |
def greet(name):
|
7 |
return "ChatDulun is ChatGPT induced disruption to Higher Education \n" + name + "!!"
|
8 |
|
|
|
10 |
# css=""" body { background-color: red } .input_text input { background-color: green } """)
|
11 |
|
12 |
with gr.Blocks() as demo:
|
13 |
+
gr.HTML("""<h1 align="center">ChatDulun is Here to Disrupt</h1>""")
|
14 |
name = gr.Textbox(label='Guest Name')
|
15 |
+
with gr.Accordion("Are we learning?"):
|
16 |
+
gr.Markdown("""![Robot](https://miro.medium.com/v2/resize:fit:720/format:webp/1*wohx1bGrN0tRuAZrak5dOg.png)""")
|
17 |
output = gr.Textbox(label='Greetings !')
|
18 |
greet_btn = gr.Button("Greet")
|
19 |
greet_btn.click(fn=greet, inputs=name, outputs=output)
|
ml.jpg
ADDED