File size: 650 Bytes
34450be
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
with open("App.tsx", "r") as f:
    content = f.read()

# Pass hfTimerQueue properly
app_notes_old = """                      queue={currentSessionId ? (templateQueue[currentSessionId] || []) : []}
                      onHuggingFaceCue={handleHuggingFaceCue}"""
app_notes_new = """                      queue={currentSessionId ? (templateQueue[currentSessionId] || []) : []}
                      hfTimerQueue={currentSessionId ? hfTimerQueue[currentSessionId] : undefined}
                      onHuggingFaceCue={handleHuggingFaceCue}"""
content = content.replace(app_notes_old, app_notes_new)

with open("App.tsx", "w") as f:
    f.write(content)