GhostScientist commited on
Commit
420f710
·
verified ·
1 Parent(s): c9a5322

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +5 -6
  3. requirements.txt +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 💻
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 4.44.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 5.9.1
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
app.py CHANGED
@@ -35,11 +35,11 @@ You provide clear, concise, and accurate responses with well-formatted code exam
35
  Always explain your reasoning and suggest best practices."""
36
 
37
  EXAMPLES = [
38
- "Write a Python function to check if a number is prime",
39
- "Explain the difference between a list and a tuple in Python",
40
- "How do I reverse a string in JavaScript?",
41
- "Write a SQL query to find duplicate records in a table",
42
- "Debug this code: def add(a, b): return a - b",
43
  ]
44
 
45
  demo = gr.ChatInterface(
@@ -79,7 +79,6 @@ demo = gr.ChatInterface(
79
  ),
80
  ],
81
  examples=EXAMPLES,
82
- cache_examples=False,
83
  theme=gr.themes.Soft(),
84
  )
85
 
 
35
  Always explain your reasoning and suggest best practices."""
36
 
37
  EXAMPLES = [
38
+ ["Write a Python function to check if a number is prime"],
39
+ ["Explain the difference between a list and a tuple in Python"],
40
+ ["How do I reverse a string in JavaScript?"],
41
+ ["Write a SQL query to find duplicate records in a table"],
42
+ ["Debug this code: def add(a, b): return a - b"],
43
  ]
44
 
45
  demo = gr.ChatInterface(
 
79
  ),
80
  ],
81
  examples=EXAMPLES,
 
82
  theme=gr.themes.Soft(),
83
  )
84
 
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- gradio==4.44.0
2
- huggingface_hub==0.25.2
 
1
+ gradio>=5.0.0
2
+ huggingface_hub>=0.26.0