keynes42 commited on
Commit
83591e9
·
verified ·
1 Parent(s): ebf4f5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -2,12 +2,15 @@ import os, sys
2
  import gradio as gr
3
  import requests
4
  import inspect
 
5
  import pandas as pd
6
  import torch, spaces
7
  from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
8
  from smolagents import CodeAgent, HfApiModel
9
  from huggingface_hub import InferenceClient, hf_hub_download
10
 
 
 
11
  # (Keep Constants as is)
12
  # --- Constants ---
13
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
2
  import gradio as gr
3
  import requests
4
  import inspect
5
+ import subprocess
6
  import pandas as pd
7
  import torch, spaces
8
  from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
9
  from smolagents import CodeAgent, HfApiModel
10
  from huggingface_hub import InferenceClient, hf_hub_download
11
 
12
+ subprocess.run(["playwright", "install"], check=True)
13
+
14
  # (Keep Constants as is)
15
  # --- Constants ---
16
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"