Cartof commited on
Commit
4cfa023
1 Parent(s): ff45051

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
2
  import openai
3
  import os
4
 
5
- css_file = os.path.join(os.path.dirname(file), "style.css")
 
6
 
7
  initial_prompt = "You are a helpful assistant."
8
 
 
2
  import openai
3
  import os
4
 
5
+ current_dir = os.path.dirname(os.path.abspath(__file__))
6
+ css_file = os.path.join(current_dir, "style.css")
7
 
8
  initial_prompt = "You are a helpful assistant."
9