Jimmyzheng-10 commited on
Commit
4858710
·
1 Parent(s): 0e60485
Files changed (2) hide show
  1. app.py +0 -5
  2. screencoder/demo/vite.config.js +1 -0
app.py CHANGED
@@ -1,7 +1,3 @@
1
- import sys, inspect, importlib.util, os
2
- spec = importlib.util.find_spec("gradio")
3
- print("== DEBUG: gradio found at ==", spec.origin, file=sys.stderr)
4
-
5
  import gradio as gr
6
  import os
7
  import tempfile
@@ -17,7 +13,6 @@ from bs4 import BeautifulSoup
17
  from pathlib import Path
18
 
19
  # Predefined examples
20
- # HF Spaces: Update paths to be relative to the app's root
21
  examples_data = [
22
  [
23
  "screencoder/data/input/test1.png",
 
 
 
 
 
1
  import gradio as gr
2
  import os
3
  import tempfile
 
13
  from pathlib import Path
14
 
15
  # Predefined examples
 
16
  examples_data = [
17
  [
18
  "screencoder/data/input/test1.png",
screencoder/demo/vite.config.js CHANGED
@@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react';
3
 
4
  export default defineConfig({
5
  plugins: [react()],
 
6
  server: { port: 5173 }
7
  });
 
3
 
4
  export default defineConfig({
5
  plugins: [react()],
6
+ base: './',
7
  server: { port: 5173 }
8
  });